import {
	silentReload
} from '@/service/request/main.js'

export default {
	onLoad(options) {
		console.log('onload mixin auth')
		// 礼品卡
		if (this.$store.getters.scenario === 'card') {
			uni.reLaunch({
				url: '/pages/gift/index'
			})
		} else {
			if (!this.$store.getters.accessToken) {
				console.info('needLogin onload')
				console.info('needLogin onload', 'silentReload')
				silentReload()
			}
		}
	}
}
